home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / obsoleteBitmap.h < prev    next >
Text File  |  1992-09-11  |  3KB  |  101 lines

  1. /*
  2.     obsoleteBitmap.h
  3.     Application Kit, Release 1.0
  4.     Copyright (c) 1988, 1989, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <objc/Object.h>
  8. #import "graphics.h"
  9.  
  10. /* NOTE: The Bitmap class has been obsoleted, use NXImage instead.   */
  11. /*       To ease conversion, this file contains the old declarations */
  12. /*       of the Bitmap methods.                                      */
  13.  
  14. /* Bitmap Types */
  15.  
  16. #define    NX_UNIQUEBITMAP        (-1)
  17. #define    NX_NOALPHABITMAP    (0)
  18. #define    NX_ALPHABITMAP        (1)
  19. #define    NX_UNIQUEALPHABITMAP    (2)
  20.  
  21. @interface Bitmap : Object
  22. {
  23.     NXRect         frame;
  24.     char       *iconName;
  25.     int             type;
  26.     int            _builtIn;
  27.     void       *_manager;        
  28.     struct __bFlags{
  29. #ifdef __BIG_ENDIAN__
  30.     unsigned int    _flipDraw:1;
  31.     unsigned int    _systemBitmap:1;
  32.     unsigned int    _nibBitmap:1;
  33.     unsigned int    _willFree:1;
  34.     unsigned int    _RESERVED:12;
  35. #else
  36.     unsigned int    _RESERVED:12;
  37.     unsigned int    _willFree:1;
  38.     unsigned int    _nibBitmap:1;
  39.     unsigned int    _systemBitmap:1;
  40.     unsigned int    _flipDraw:1;
  41. #endif
  42.     }               _bFlags;
  43. }
  44.   
  45. + findBitmapFor:(const char *)name;
  46. + getSize:(NXSize *) size for:(const char *)name;
  47. + (BOOL)addName:(const char *)name data:(void *)bitmapData
  48.     width:(int)samplesWide height:(int)samplesHigh
  49.     bps:(int)bitsPerSample spp:(int)samplesPerPixel;
  50. + (BOOL)addName :(const char *)name fromTIFF:(const char *)filename;
  51. + (BOOL)addName :(const char *)name fromMachO:(const char *)sectionName;
  52. + (BOOL)addName :(const char *)name bitmap:bitmapObj;
  53. + newFromStream:(NXStream *)stream;
  54. + newFromTIFF:(const char *)filename;
  55. + newFromMachO:(const char *)sectionName;
  56. + newSize:(NXCoord) width :(NXCoord) height type:(int)aType;
  57. + newRect:(const NXRect *) aRect type:(int) aType window: window;
  58. + compact;
  59. - finishUnarchiving;
  60. - free;
  61. - setFlip:(BOOL)flag;
  62. - _getFrame:(NXRect *) aRect;
  63. - (const char *)name;
  64. - window;
  65. - getSize:(NXSize *)theSize;
  66. - (BOOL)lockFocus;
  67. - unlockFocus;
  68. - (int)type;
  69. - writeTIFF:(NXStream *) stream;
  70. - image:(void *)data withAlpha:(void *)alpha
  71.     width:(int)samplesWide height:(int)sampleHigh
  72.     bps:(int)bitsPerSample;
  73. - image:(void *)data width:(int)samplesWide height:(int)sampleHigh
  74.     bps:(int)bitsPerSample spp:(int)samplesPerPixel;
  75. - image:(void *)data toRect:(const NXRect *) rect
  76.     width:(int)samplesWide height:(int)sampleHigh
  77.     bps:(int)bitsPerSample spp:(int)samplesPerPixel;
  78. - imageSize:(int *)sizeInBytes 
  79.     width:(int *)ptrWidth height:(int *)ptrHeight
  80.     bps:(int *)ptrBps spp:(int *)ptrSpp inRect:(const NXRect *)rect;
  81. - readImage:(void *)image;
  82. - readImage:(void *)image inRect:(const NXRect *)rect;
  83. - readImage:(void *)image withAlpha:(void *)alpha;
  84. - readImage:(void *)image withAlpha:(void *)alpha inRect:(NXRect *)rect;
  85. - composite:(int)op toPoint:(const NXPoint *)aPoint;
  86. - composite:(int)op fromRect:(const NXRect *)aRect toPoint:(const NXPoint *)aPoint;
  87. - write:(NXTypedStream *)s;
  88. - read:(NXTypedStream *)s;
  89. - resize:(NXCoord)theWidth :(NXCoord)theHeight;
  90. - image:(void *)data toRect:(const NXRect *)rect 
  91.     width:(int)samplesWide height:(int)samplesHigh
  92.     bps:(int)bitsPerSample spp:(int)samplesPerPixel 
  93.     config:(int)planarConfig interp:(int)photoInterp;
  94. - imageSize:(int *)sizeInBytes
  95.     width:(int *)ptrWidth height:(int *)ptrHeight
  96.     bps:(int *)ptrBps spp:(int *)ptrSpp 
  97.     config:(int *)ptrConfig interp:(int *)ptrInterp
  98.     inRect:(const NXRect *)rect;
  99.     
  100. @end
  101.